package com.seecen.controller;

import com.seecen.service.MessageService;
import com.seecen.utils.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Classname MessageController
 * @Description TODO
 * @Date 2025/10/18 11:41
 * @Created by 21207
 */
@RestController
@RequestMapping("/message")
@Slf4j
public class MessageController {
    @Autowired
    private MessageService messageService;
    //获取Message信息
    @GetMapping("/getMessage")
    public Result getMessage() {
        Result ret = messageService.getMessage();
        log.info("getMessage ret ====> {}", ret);
        return ret;
    }
}
